using ASP;
using System;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.HtmlControls;

public partial class ViewProjectDoc : Page, IRequiresSessionState
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            base.Response.ContentType = this.Session["View_ContentType"].ToString();
            string strFilePath = this.Session["View_FilePath"].ToString();
            base.Response.AddHeader("Content-Disposition", "attachment; filename=\"" + this.Session["View_FileName"].ToString() + "\"");
            base.Response.WriteFile(strFilePath);
            base.Response.End();
        }
        catch (Exception)
        {
        }
    }
}
